const fs = require("fs");
const readStatic = (req,res) => {
    const filePath = req.url.replace("/files", "./public");
    fs.readFile(filePath, (err, data) => {
        res.end(data);
    });
};

module.exports = { readStatic };
